aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/[username]/dashboard')
-rw-r--r--src/routes/(app)/[username]/dashboard/+page.svelte12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/dashboard/+page.svelte b/src/routes/(app)/[username]/dashboard/+page.svelte
index 0b49a870..9c321472 100644
--- a/src/routes/(app)/[username]/dashboard/+page.svelte
+++ b/src/routes/(app)/[username]/dashboard/+page.svelte
@@ -6,6 +6,8 @@
import { rate, password, selectedRate } from '$lib/store';
import { goto } from '$app/navigation';
import { t } from '$lib/translations';
+ import { events } from '$lib/store';
+ import { Feed } from '$comp';
export let data;
$: ({ invoices, requests } = data);
@@ -55,6 +57,10 @@
$: btcPrice = f($selectedRate, user.currency);
$: accountBalanceBtc = user.account.balance / sats;
+
+ $: sorted = Object.values($events)
+ .filter((ev) => ev?.pubkey)
+ .sort((a, b) => b.seen - a.seen);
</script>
<div class="container px-4 max-w-md mx-auto mt-20 space-y-12 mb-8">
@@ -170,3 +176,9 @@
</div>
</div>
</div>
+
+<div class="mb-20">
+ <div class="container w-full mx-auto text-lg px-4 md:max-w-2xl space-y-5">
+ <Feed events={sorted} />
+ </div>
+</div>